#include <stdio.h>
#include <stdlib.h>

int main (void){
 int *p = NULL;
 int *q = NULL;
 int x;
 
 p=(int *) malloc(sizeof(int));
 *p=3;
 q=p;
 printf("%d %d\n",*p,*q);
 x=7;
 *q = x;
 printf("%d %d\n",*p,*q);
 printf("%x %x\n",p,q);
 p=(int *) malloc(sizeof(int));
 *p=5;
 printf("%d %d\n", *p, *q);
 printf("%x %x\n",p,q);
 return 0;
}
